package com.huaxiafinance.management.service;

import com.huaxiafinance.management.dto.request.PartnerGradListeDto;
import com.huaxiafinance.management.dto.request.PartnerGradeDto;
import com.huaxiafinance.management.dto.request.PartnerGradeSortDto;
import com.huaxiafinance.management.dto.response.PartnerWithGrade;
import com.huaxiafinance.management.model.PartnerGrade;

import java.util.List;

/**
 * Created by win7 on 2017/12/5.
 */
public interface PartnerGradeService {

  /**
   * 查询所有的合伙人等级的信息
   *
   * @return List
   */
  List<PartnerWithGrade> getAllPartnerGrade();

  public PartnerGrade getPartnerGradeByPrimaryKey(Integer id);

  int add(PartnerGradeDto dto);

  int edit(PartnerGradeDto dto);

  PartnerGrade detail(Integer gradeId);

  List<PartnerGrade> list(PartnerGradListeDto dto);

  boolean updateSort(PartnerGradeSortDto list);

  int countlist(PartnerGradListeDto dto);

  int updateEnable(Integer gradeId, Integer isEnable, Integer userId);

}
